package cn.szzsi.common.model;

import cn.szzsi.common.model.base.BaseCaptcha;

/**
 * Created by haotian on 2016/12/16.
 */
public class Captcha extends BaseCaptcha<Captcha> {
    public static final Captcha dao =new Captcha().dao();

    //判断验证码是否存在
    public Captcha isExitsCaptcha(String phone, String captcha){
        return dao.findFirst("select * from mall_captcha where phone=? and captcha=? and type=0",phone,captcha);
    }

}
